#include "SoapServiceLogWidget.h"
#include "ui_widget.h"
#include "SoapService.h"

QSoapService* service;

SoapServiceLogWidget::SoapServiceLogWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
    service = new QSoapService;
    connect(service, SIGNAL(serviceLog(QString)), this, SLOT(onLogMessage(QString)));
}

SoapServiceLogWidget::~SoapServiceLogWidget()
{
    delete ui;
}

void SoapServiceLogWidget::onLogMessage(QString msg){
    ui->plainTextEdit->appendPlainText(msg);
}
